home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextDeveloper / OpenStepConversion / ConversionScripts / VMConversion.tops < prev    next >
Encoding:
Text File  |  1995-09-05  |  1.0 KB  |  18 lines

  1. /* This is an optional conversion */
  2.  
  3. replace "<old>" with "<new>"
  4.     where ("<old>", "<new>") isOneOf {
  5.     ("vm_page_size", "NSPageSize()"), 
  6.     ("round_page", "NSRoundUpToMultipleOfPageSize"), 
  7.     ("trunc_page", "NSRoundDownToMultipleOfPageSize"), 
  8.     }
  9.  
  10. replace "vm_allocate" with same
  11.     warning "VMConversion: You can probably use NSAllocateMemoryPages() instead of vm_allocate if your use is relatively simple.  NSAllocateMemoryPages() does not take a task or the 'anywhere' argument and it returns the pointer to the allocated memory as the value of the function instead of by reference."
  12.     
  13. replace "vm_deallocate" with same
  14.     warning "VMConversion: You can probably use NSDeallocateMemoryPages() instead of vm_deallocate if your use is relatively simple.  NSDeallocateMemoryPages() does not take a task."
  15.  
  16. replace "vm_copy" with same
  17.     warning "VMConversion: You can probably use NSCopyMemoryPages() instead of vm_copy if your use is relatively simple.  NSCopyMemoryPages() does not take a task and the other arguments are ordered somewhat differently."
  18.